﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JQuery.Net.Controls.Gadgets
{
    [AttributeUsage(AttributeTargets.Method)]
    public class ConnectionProviderAttribute
        : Attribute
    {
        public ConnectionProviderAttribute(string name)
        {
            Name = name;
        }

        public ConnectionProviderAttribute(string name, string id)
            : this(name)
        {
            ID = id;
        }

        public string Name { get; set; }

        public string ID { get; set; }
    }

    [AttributeUsage(AttributeTargets.Method)]
    public class ConnectionConsumerAttribute
        : Attribute
    {
        public ConnectionConsumerAttribute(string name)
        {
            Name = name;
        }

        public ConnectionConsumerAttribute(string name, string id)
            : this(name)
        {
            ID = id;
        }

        public string Name { get; set; }

        public string ID { get; set; }
    }
}
